package com.taotao.web;

import com.taotao.common.TaotaoResult;
import com.taotao.service.TbItemParamItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TbItemParamItemController {

    @Autowired
    private TbItemParamItemService tbItemParamItemService;

    /**
     * 根据商品的id（itemId）查询商品规格
     * @param itemId
     * @return
     */
    @RequestMapping("/param/item/query/{itemId}")
    @ResponseBody
    public TaotaoResult TbItemParamItemService(@PathVariable long itemId) {
        TaotaoResult taotaoResult = tbItemParamItemService.TbItemParamItemService(itemId);
        return taotaoResult;
    }
}
